package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 游记评论
 */
@ToString
@Setter
@Getter
@Document("scene_comment")
public class SceneCommentReply implements Serializable {

    public static final int SCENE_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int SCENE_COMMENT_TYPE = 1; //评论的评论

    @Id
    private String id;  //id
    private Long SceneCommentId;  //点评id
    private Long userId;    //用户id
    private String username; //用户名
    private String headUrl;   // 用户头像

    private String usernameOld; //被回复用户名
    private Date createTime; //创建时间
    private String commentContent;  //评论内容

    private int type = SCENE_COMMENT_TYPE_COMMENT; //评论类别

    private SceneCommentReply refComment;  //关联的评论
}